package com.gsnd.gsnd22estore.mapper;

import com.alipay.api.domain.VoucherInfoDetail;
import com.gsnd.gsnd22estore.domain.EsAddress;
import com.gsnd.gsnd22estore.domain.EsUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Entity com.gsnd.gsnd22estore.domain.EsAddress
 */
public interface EsAddressMapper {
    List<EsAddress> selectByUserId(Integer userId);
     void editAddressInfo(EsAddress address);
     void createAddress(EsAddress address);

    void cancelDefaultAddress(@Param("id")Integer id,
                       @Param("userId")Integer userId);
    void removeAddressById(Integer id);
    void setDefaultAddress(@Param("id")Integer id,
                           @Param("userId")Integer userId);


}




